package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.CommonDao;
import com.windfone.model.Ad;
import com.windfone.model.BaseListObject;
import com.windfone.model.Color;
import com.windfone.model.DetailMsg;
import com.windfone.model.Goodsqryorder;
import com.windfone.model.PackageCompose;
import com.windfone.model.Pricehistory;
import com.windfone.model.StaticAbout;
import com.windfone.service.CommonService;

public class CommonServiceImpl implements CommonService {
	private CommonDao commonDao;
	public void setCommonDao(CommonDao commonDao) {
		this.commonDao = commonDao;
	}

	public int addColor(Color bean) {
		return commonDao.addColor(bean);
	}

	public int updateColor(Color bean) {
		return commonDao.updateColor(bean);
	}

	public int deleColor(int key) {
		return commonDao.deleColor(key);
	}

	public Color getColorByKey(int key) {
		return commonDao.getColorByKey(key);
	}

	public List<Color> getColorByProductId(int productId) {
		return commonDao.getColorByProductId(productId);
	}

	public int addDetailMsg(DetailMsg bean) {
		return commonDao.addDetailMsg(bean);
	}

	public int updateDetailMsg(DetailMsg bean) {
		return commonDao.updateDetailMsg(bean);
	}

	public DetailMsg getDetailMsgByKey(int key) {
		return commonDao.getDetailMsgByKey(key);
	}

	public int deleteDetailMsg(int key) {
		return commonDao.deleteDetailMsg(key);
	}

	public int addPackage(PackageCompose bean) {
		return commonDao.addPackage(bean);
	}
	public int addPackageGetReturnKey(PackageCompose bean) {
		return commonDao.addPackageGetReturnKey(bean);
	}

	public int updatePackage(PackageCompose bean) {
		return commonDao.updatePackage(bean);
	}

	public int delePackage(int key) {
		return commonDao.delePackage(key);
	}

	public PackageCompose getPackageByKey(int key) {
		return commonDao.getPackageByKey(key);
	}

	public List<PackageCompose> getPackageByProductId(int productId) {
		return commonDao.getPackageByProductId(productId);
	}

	public DetailMsg getDetailMsgByProductId(int productId) {
		return commonDao.getDetailMsgByProductId(productId);
	}

	public int addStaticAbout(StaticAbout bean) {
		return commonDao.addStaticAbout(bean);
	}

	public int updateStaticAbout(StaticAbout bean) {
		return commonDao.updateStaticAbout(bean);
	}

	public int deleStaticAbout(int key) {
		return commonDao.deleStaticAbout(key);
	}

	public StaticAbout getStaticAboutByKey(int key) {
		return commonDao.getStaticAboutByKey(key);
	}

	public StaticAbout getStaticAboutByShortName(String shortName) {
		return commonDao.getStaticAboutByShortName(shortName);
	}

	public List<StaticAbout> getAllStaticAbout() {
		return commonDao.getAllStaticAbout();
	}

	public List<StaticAbout> getAllStaticAboutName() {
		return commonDao.getAllStaticAboutName();
	}

	public List<Ad> getAllAds() {
		return commonDao.getAllAds();
	}

	public Ad getAdById(int adId) {
		return commonDao.getAdById(adId);
	}

	public int updateAd(Ad bean) {
		return commonDao.updateAd(bean);
	}

	public List<Ad> getAdsByFlag(String flag) {
		return commonDao.getAdsByFlag(flag);
	}

	public int getDatabaseDaySeq(int key) {
		return commonDao.getDatabaseDaySeq(key);
	}

	public int setDatabaseDaySeq(int daySeq, int key) {
		return commonDao.setDatabaseDaySeq(daySeq, key);
	}

	public int addPricehistory(Pricehistory bean) {
		return commonDao.addPricehistory(bean);
	}

	public int updatePricehistory(Pricehistory bean) {
		return commonDao.updatePricehistory(bean);
	}

	public Pricehistory checkPriceExist(Pricehistory bean) {
		return commonDao.checkPriceExist(bean);
	}

	public List<Pricehistory> qryPriceHistory(String wherecondition) {
		return commonDao.qryPriceHistory(wherecondition);
	}

	public List listOnePagePricehistory(int[] keygroups) {
		return commonDao.listOnePagePricehistory(keygroups);
	}

	public List<BaseListObject> getAllKewgroups() {
		return commonDao.getAllKewgroups();
	}

	public int delPriceByKey(int priceHisId) {
		return commonDao.delPriceByKey( priceHisId );
	}

	public int inserGoodsqryorder(Goodsqryorder bean) {
		return commonDao.inserGoodsqryorder(bean);
	}
	public int inserGoodsqryorderByHandle(Goodsqryorder bean) {
		return commonDao.inserGoodsqryorderByHandle(bean);
	}

	public int updateGoodsqryorder(Goodsqryorder bean) {
		return commonDao.updateGoodsqryorder(bean);
	}

	public int deleGoodsqryorder(Goodsqryorder bean) {
		return commonDao.deleGoodsqryorder(bean);
	}

	public List listOnePageGoodsqryorder(int[] keygroups) {
		return commonDao.listOnePageGoodsqryorder(keygroups);
	}

	public List<Goodsqryorder> getAllKewgroupsByWhere(String conditionStr) {
		return commonDao.getAllKewgroupsByWhere(conditionStr);
	}

	public int getAllGoodsqryorderRecorderNumber(String whereCondition) {
		return commonDao.getAllGoodsqryorderRecorderNumber(whereCondition);
	}

	public List<Goodsqryorder> getAllGoodsqryorder(int beginRecord,String whereCondition) {
		return commonDao.getAllGoodsqryorder(beginRecord, whereCondition);
	}

	public List<Integer> getAllGoodsqryorderRecorderNumberFront() {
		return commonDao.getAllGoodsqryorderRecorderNumberFront();
	}

}
